package com.mininglamp.main;

import org.kie.api.KieBase;
import org.kie.api.KieServices;
import org.kie.api.builder.KieScanner;
import org.kie.api.runtime.KieContainer;

/**
 * Created by zhouhuiyu on 17/9/10.
 */
public class TestRemoteScannerMain {

    public static void main(String[] args) {


        KieServices ks = KieServices.Factory.get();
        KieContainer kContainer = ks.newKieContainer(ks.newReleaseId("com.myteam", "Project1", "LATEST"));

        KieScanner kieScanner = ks.newKieScanner(kContainer);

        kieScanner.start(10000L);

        while (true) {

            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }

        }


    }

}
